package com.jzo2o.customer.controller.inner;

import com.jzo2o.api.customer.dto.response.AddressBookResDTO;
import com.jzo2o.customer.service.IAddressBookService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * \* User: chy
 * \* Date: 2025/9/30  15:11
 * \* Description:
 * \
 */
@RestController
@RequestMapping("/inner/address-book")
@Api(tags = "内部接口 - 普通用户地址相关接口")
public class InnerAddressBookController {

    @Resource
    private IAddressBookService addressBookService;

    /**
     * 根据地址id查询地址信息         order 模块主要使用
     *
     * @param id
     * @return
     */
    @GetMapping("{id}")
    AddressBookResDTO getAddressById(@PathVariable("id") Long id) {

        return addressBookService.getAddressById(id);
    }
}
